OmniIndex Enums topic
Enums
===========================
Library defines several enums in the OmniIndex library, including OmniIndexState
, OmniIndexAuthenticationType
, ClientStatus
, and LoginType
. These enums represent the possible states and types of objects and actions in the library.
Inputs
None
Flow
The code snippet declares the OmniIndexState enum with five possible states: uninitialized, initialized, invalid, configured, and authorized. The OmniIndexAuthenticationType enum is declared with two possible states: api and omniindex. The ClientStatus enum is declared with six possible states: invalid, uninitialized, initialized, unauthenticated, authenticating, and authenticated. The LoginType enum is declared with seven possible states: email, google, apple, facebook, register, forgotPassword, and changeEmail.
Outputs
None
Usage example
OmniIndexState state = OmniIndexState.initialized;
print(state); // Output: initialized
OmniIndexAuthenticationType type = OmniIndexAuthenticationType.api;
print(type); // Output: api
ClientStatus clientStatus = ClientStatus.uninitialized;
print(clientStatus); // Output: uninitialized
LoginType loginType = LoginType.email;
print(loginType); // Output: email
Enums
- ClientStatus OmniIndex Enums
- ClientStatus enum holds the current client/user status An enum declaration in Dart, defining the possible states of a client/user in the OmniIndex library.
- LoginType OmniIndex Enums
- LoginType enum holds the current client login action/type An enum declaration in Dart, defining the possible states of a client/user interacting with authentication actions in the OmniIndex library.
- OmniIndexAuthenticationType OmniIndex Enums
- OmniIndexAuthenticationType enum holds the authentication type of the object An enum declaration in Dart, defining the possible states of an object in the OmniIndex library.
- OmniIndexState OmniIndex Enums
- OmniIndexState enum holds the state of the object An enum declaration in Dart, defining the possible states of an object in the OmniIndex library.